package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DvDevolucRta generated by hbm2java
 */
@Entity
@Table(name = "EST_CONSOLID_IMP_PAR_ACTECON", schema = "ESTADISTICA")
public class EstConsolidImpAcumParamActecon implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1289789202457466971L;
	/**
	 * 
	 */
	
	private Long nejecucion;
	private TbActEco cacteco;
	
	public EstConsolidImpAcumParamActecon() {
	}

	public EstConsolidImpAcumParamActecon(Long nejecucion, TbActEco cacteco) {
		this.nejecucion= nejecucion;
		this.cacteco = cacteco;
	}

	/**
	 * @return the nejecucion
	 */
	@Id
	@Column(name = "N_EJECUCION", nullable = false, precision = 5, scale = 0)
	public Long getNejecucion() {
		return nejecucion;
	}

	/**
	 * @param iindice
	 *            the iindice to set
	 */
	public void setNejecucion(Long nejecucion) {
		this.nejecucion = nejecucion;
	}

	
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "C_ACT_ECO", nullable = false)
	
	public TbActEco getCacteco() {
		return this.cacteco;
	}

	public void setCacteco(TbActEco cacteco) {
		this.cacteco = cacteco;
	}


}
